<template>
  <div class="body">
    <div class="top">
      <h2>
        <i @click="fun()">&lt;</i>
        <p>卡分类</p>
        <b>...</b>
      </h2>
    </div>
    <div class="center">
      <h3>我的应用</h3>
      <div class="images">
        <img src="@/assets/Cerditcar/fenlei-zdcx.png" alt="" @click="funA()" />
        <img src="@/assets/Cerditcar/fenlei-jymx.png" alt="" />
        <img src="@/assets/Cerditcar/fenlei-edtz.png" alt="" />
        <img src="@/assets/Cerditcar/fenlei-jfyh.png" alt="" />
        <img src="@/assets/Cerditcar/fenlei-xykgs.png" alt="" />
        <img src="@/assets/Cerditcar/fenlei-yjbk.png" alt="" />
        <img src="@/assets/Cerditcar/fenlei-xjzc.png" alt="" />
        <img
          src="@/assets/Cerditcar/fenlei-xjzc.png"
          alt=""
          style="opacity: 0"
        />
      </div>
      <div class="fenqi">
        <h3>我要分期</h3>
        <div class="tybox">
          <img src="@/assets/Cerditcar/fenlei-fqt.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-zdfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xjfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xffq.png" alt="" />
        </div>
      </div>
      <div class="zhangwu">
        <h3>我的账务</h3>
        <div class="tybox">
          <img src="@/assets/Cerditcar/fenlei-fqt.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-zdfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xjfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xffq.png" alt="" />
        </div>
      </div>
      <div class="fuwu">
        <h3>用卡服务</h3>
        <div class="tybox">
          <img src="@/assets/Cerditcar/fenlei-fqt.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-zdfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xjfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xffq.png" alt="" />
        </div>
      </div>
      <div class="anquan">
        <h3>卡片安全</h3>
        <div class="tybox">
          <img src="@/assets/Cerditcar/fenlei-fqt.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-zdfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xjfq.png" alt="" />
          <img src="@/assets/Cerditcar/fenlei-xffq.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    fun() {
      this.$router.push("/carhome");
    },
    funA() {
      this.$router.push("/chaxun");
    },
  },
};
</script>

<style lang="scss" scoped>
h3 {
  width: 100%;
  height: 0.3rem;
  line-height: 0.3rem;
  font-weight: 700;
  margin-left: 0.04rem;
}
.tybox {
  display: flex;
  justify-content: space-around;
  img {
    width: 0.8rem;
  }
}
.body {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #f2f1f6;
  .top {
    width: 100%;
    height: 0.6rem;
    background: #3069b0;
    h2 {
      display: flex;
      justify-content: space-between;
      width: 100%;
      height: 100%;
      color: #fff;
      align-items: center;
      i {
        font-size: 0.2rem;
        margin-left: 0.1rem;
      }
      b {
        font-size: 0.2rem;
        margin-right: 0.15rem;
      }
      p {
        font-size: 0.2rem;
      }
    }
  }
  .center {
    width: 100%;
    flex: 1;
    background: #fff;
    .images {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      margin-bottom: 0.1rem;
      img {
        width: 0.8rem;
        height: 0.8rem;
      }
    }
  }
}
</style>